#ifndef PLANETADDTASK_HH_
# define PLANETADDTASK_HH_
# include "GameMessage.hh"

/**
 * <game>
 *  <planet_add_task>
 *      <star_id>csillag azonosító</star_id>
 *      <planet_id>bolygó azonosító</planet_id>
 *      <task>feladat</task>
 *      <amount>hány darab</amount>
 *  </planet_add_task>
 * </game>
 */
class Network::PlanetAddTask: public GameMessage {
    public: static spPlanetAddTask construct(QDomElement const& message);

    public: u8 const starId;
    public: u8 const planetId;
    public: QString const task;
    public: u8 const amount;

    public: PlanetAddTask(
      u8 starId, u8 planetId, QString const& task, u8 amount
    );

    public: virtual QDomDocument to_xml() const;

    public: virtual void process_on_server(XmlServerThread& thread);
};

#endif // ndef PLANETADDTASK_HH_
